<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增房屋列表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-house-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">区域：</label>
                <div class="col-sm-8">
                    <input name="houseArea" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">房屋类型：</label>
                <div class="col-sm-8">
                    <select name="houseType" class="form-control m-b" required>
                        <option value="">所有</option>
                        <option>商铺</option>
                        <option>普通住户</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">楼栋：</label>
                <div class="col-sm-8">
                    <input name="BUILDING" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">单元：</label>
                <div class="col-sm-8">
                    <input name="ELEMENT" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">楼层：</label>
                <div class="col-sm-8">
                    <input name="FLOOR" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">门牌号：</label>
                <div class="col-sm-8">
                    <input name="houseNumber" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">建筑面积：</label>
                <div class="col-sm-8">
                    <input name="coveredArea" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">房屋用途：</label>
                <div class="col-sm-8">
                    <select name="houseUse" class="form-control m-b" required>
                        <option value="">所有</option>
                        <option>商铺</option>
                        <option>居住</option>
                        <option>未设置</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">业主姓名：</label>
                <div class="col-sm-8">
                    <input name="ownerName" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/house"
        $("#form-house-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-house-add').serialize());
            }
        }
    </script>
</body>
</html>